%% ========================================================================
%                           Setup workspace
%%=========================================================================
project_root = erase(pwd, regexpPattern("/01Code.*"));
code     = [project_root,'/01Code/model/matlab/'];
data     = [project_root,'/02DataPipeline/model/'];
addpath(genpath(code));

% Directories for output
figures_iso  = [project_root,'/03Output/figures/model/Iso'];
figures_iso_fullnohet = [figures_iso , '/FullNoHet'];
figures_iso_fullhet = [figures_iso , '/FullHet'];
figures_iso_precovidnohet = [figures_iso , '/PreCovidNoHet'];
figures_step = [project_root,'/03Output/figures/model/Step'];
figures_stepfree = [figures_step, '/FreeCyc'];
figures_stepnofree = [figures_step, '/NoFreeCyc'];

tables   = [project_root,'/03Output/tables'];

%% Structs describing metadata (titles, labels, footnotes, and figure specis)

% Figure data
optfig.fontsize        = 22;
optfig.fontname        = 'Times New Roman';
optfig.dimension       = [0 0 8 6];
optfig.lw              = 3.5;
optfig.folder          = figures_iso;
%optfig.color           = num2cell(parula(7),2);
optfig.color           = num2cell(jet(7),2);
optfig.style           = {'-','--',':','-','--','-','.-'};
optfig.marker          = {'none','o','x','s','+'};
optfig.markersize      = 12;
optfig.labfontsize     = 20;
optfig.axfontsize      = 18;
optfig.legfontsize     = 16;
optfig.axisweight      = 2;


optfig.textProp = {'fontsize', optfig.labfontsize, ...
                   'FontName', optfig.fontname};
optfig.labProp  = {'fontsize', optfig.axfontsize, ...
                   'FontName', optfig.fontname};
optfig.legProp  = {'fontsize', optfig.legfontsize, ...
                   'FontName', optfig.fontname};

